﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Web_Admin_Login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {

      //  Session["cashierpos"] = null;
       // string log = "";
        Bestlife.ERP.Entities.E_Admin_login adlg = new Bestlife.ERP.Entities.E_Admin_login();
        adlg.User_Name1 = TextBox1.Text;
        adlg.Password1 = TextBox2.Text;

        Bestlife.ERP.BusinessRules.B_Admin_User_Login login = new Bestlife.ERP.BusinessRules.B_Admin_User_Login();

        Boolean b=login.user(adlg);
        
        if (b)
        {
            Session["cashierpos"] = TextBox1.Text;
            Response.Redirect("PointOfSales.aspx");
            //Session["customercare"] = TextBox1.Text;
            //Response.Redirect("Registration.aspx");
            
        }
       
    }


    
}